// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
/* 在vue工程化项目里如果文件类型为.vue，则可以省略.vue后缀 */
import App from './App'
/*
    Vue简写：当项目目录底下文件只有index.js时，可以忽略index.js。脚手架会自动寻找该目录下的index.js文件
    import router from './router/index.js'   等价于  import router from './router'
*/
import router from './router'
// 引入normalize.css移动端初始化样式表
import './assets/styles/normalize.css'
//引入fastclick，解决移动端300ms点击延迟
import fastClick from 'fastclick'
//激活fastclick
fastClick.attach(document.body)
// 引入移动端适配方案flexible.js
import './assets/lib/flexible.js'
// 全局---引入swiper轮播模块vue-awesome-swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
// require styles引入swiper.css轮播样式表
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper, /* { default global options } */)
//引入axios进行前后端数据交互
import axios from 'axios'
Vue.prototype.$axios = axios//将axios实例挂载到Vue实例的prototype属性上，以此便可以全局使用


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
